package routes

import (
	"gitee.com/pangxianfei/frame/request"
	"gitee.com/pangxianfei/frame/route"

	"tmaic/user/http/middleware"
)

func Register(router *request.Engine) {
	defer route.PrintingRouteInfo(router)
	versionV1(router)
}
func versionV1(engine *request.Engine) {
	v1 := route.NewVersion(engine, "")
	v1.Auth("", func(grp route.Grouper) {
		grp.AddGroup("/user", &UserGroup{})
	}, middleware.TenantMiddle())
}
